package com.mdd.front.validate.order;

import com.mdd.common.validator.annotation.IDMust;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 订单操作历史记录参数
 * @author LikeAdmin
 */
@Data
@ApiModel("订单操作历史记录更新参数")
public class OperateHistoryUpdateValidate implements Serializable {

    private static final long serialVersionUID = 1L;

    @IDMust(message = "id参数必传且需大于0")
    @ApiModelProperty(value = "")
    private Long id;

    @NotNull(message = "orderId参数缺失")
    @ApiModelProperty(value = "订单id")
    private Long orderId;

    @NotNull(message = "operateMan参数缺失")
    @ApiModelProperty(value = "操作人：用户；系统；后台管理员")
    private String operateMan;

    @NotNull(message = "orderStatus参数缺失")
    @ApiModelProperty(value = "订单状态：0待支付 1待签约 2车辆准备中3待提车4租赁中5待结算6待确认7已完成8已取消")
    private Long orderStatus;

    @NotNull(message = "note参数缺失")
    @ApiModelProperty(value = "备注")
    private String note;

}
